package design._11_proxy;

public class ProxySubject extends Subject {
	private RealSubject realSubject = new RealSubject();
	@Override
	public void Request() {
		PreRequest();
		realSubject.Request(); //调用真实主题对象的方法
		PostRequest();
	}
	
	public void PreRequest() {
		//业务处理
	}
	
	private void PostRequest() {
		//业务处理
	}
}
